﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Revis.VClinicNet.Core.Domain.Credentials
{
    [Flags]
    public enum WorkerUserRole
    {
        Doctor = 1<<0,
        Recepcionist= 1<<1,
        Administrator = 1<<2
    }

    public static class WorkerUserRoleExtensions
    {
        public static string ToPLString(this WorkerUserRole role)
        {
            string result = String.Empty;
            switch (role) {
                case WorkerUserRole.Doctor:
                    result = "Doktor";
                    break;
                case WorkerUserRole.Recepcionist:
                    result = "Recepcionista";
                    break;
                case WorkerUserRole.Administrator:
                    result = "Administrator";
                    break;
            }
            return result;
        }
    }
}
